package com.lanou.order.service;


import com.lanou.entity.entity.OrderEntity;
import com.lanou.entity.entity.OrderShippingEntity;
import com.lanou.entity.utils.AjaxResult;

import java.util.List;

public interface OrderService {

    // 按条件查询
    List<OrderEntity> query(int index, String submitDate, String orderState, String keyWord);

    void delete(int orderId);

//    void insert(OrderEntity orderEntity, OrderShippingEntity orderShippingEntity, List<OrderItemEntity> orderItemEntityList);
//    void insert(OrderShippingEntity orderShippingEntity, String payType, String total);

    List<OrderEntity> queryAll(int page);

    List<Integer> queryState();

    int queryCount();

    void update(String orderId, String status);


    AjaxResult insert(OrderShippingEntity orderShippingEntity, String payType, String userOrderCartId, String total);
}
